package com.example.demo2;

import com.example.demo2.entity.User;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

import java.util.Arrays;
import java.util.List;

@SpringBootApplication
public class Demo2Application {

    public static  List<User> defaultUsers;

    {
        User user = new User("wangle","$2a$10$E4yWWtCOkhrk.jROZvGK6eZwUfRgzcSiWuUjLaRaIe7e623psANKy");
        User user1 = new User("wangjing","$2a$10$E4yWWtCOkhrk.jROZvGK6eZwUfRgzcSiWuUjLaRaIe7e623psANKy");
        User user2 = new User("lili","$2a$10$E4yWWtCOkhrk.jROZvGK6eZwUfRgzcSiWuUjLaRaIe7e623psANKy");
        defaultUsers = Arrays.asList(user,user1,user2);
    }

    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(Demo2Application.class, args);
        System.out.println(run);
    }





}
